$(function () {
    //      用户动态
//      不满足5个li时，时间戳所对应文字的最后一个去掉左边框
    if ($(".user-text-list").length < 5) {
        $(".user-text-list:last-child .user-done-list").css("border-left", "1px solid transparent");
    }
//      跑马灯
    $('.feeds').liMarquee({
        direction: 'up',
        runshort: false,  //内容不足一页(5个li)不滚动
    });
//    轮播
    var swiper = new Swiper('.swiper-container', {
        pagination: '.swiper-pagination',
        nextButton: '.swiper-button-next',
        prevButton: '.swiper-button-prev',
        slidesPerView: 3,
        paginationClickable: true,
        spaceBetween: 15,
        loop: true,
        autoplay: 2500,
        autoplayDisableOnInteraction: false
    });
})